odhcp6c: fix deamon raw buffer inc
authorxuxb <[email protected]>
Sun, 3 Dec 2023 07:11:21 +0000 (02:11 -0500)
committerÁlvaro Fernández Rojas <[email protected]>
Sun, 19 Oct 2025 14:38:16 +0000 (16:38 +0200)
commitca3cd525f44725b58ccc170d6d06e084e6c06cb1
tree297eedb0897dea540fc0ba7bda57b0ed2b22fba7
parentd7afeea2b9650c64fcf915cbb3369577247b96ed
odhcp6c: fix deamon raw buffer inc

When starting odhcp6c as a daemon using the following command:
  odhcp6c -s /etc/odhcp6c.script -p /var/run/eth0_odhcp6c.pid -P 0 \
    -t 120 eth0"
The DHCPv6 server sends RA packets every 10 seconds.
However, it was observed that the raw socket's receive buffer keeps
increasing continuously. After investigating the code, an error was found:
the I/O signal was bound before starting the daemon, causing the daemon to
not receive the I/O signal. Consequently, the raw socket's recv queue kept
growing indefinitely.

The author of this patch is inactive and didn't include a proper SoB:
https://github.com/Horbivores

Link: https://github.com/openwrt/odhcp6c/pull/80
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/odhcp6c.c